package com.cmc.cloud.cmclink.doc.api.document.req.so.sovo.attachmentvo;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 订舱附件表 提单附件表 单证所有附件都保存在这张表 通过类型区分分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 订舱附件表 提单附件表 单证所有附件都保存在这张表 通过类型区分分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AttachmentPageReqVO extends PageParam {

    @Schema(description = "外键 so/ si id", example = "8804")
    private Long referenceId;

    @Schema(description = "业务类型 so/ si", example = "2")
    private String referenceType;

    @Schema(description = "附件名称+文件类型", example = "李四")
    private String attachName;

    @Schema(description = "附件类型")
    private String attachTypeCode;

    @Schema(description = "文件资源id", example = "27182")
    private Long fileId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
